﻿@model Inovout.Account.Web.Models.PersonSignUpInfo
@{
    Layout = "~/Views/Shared/_SignLayout.cshtml";
    ViewBag.Title = "三宝云账户";
}


<header class="reg_header">
    <img src="~/Styles/Themes/Google/Images/logo_2x.png" /><span><a href='@Url.Action("SignIn", "Account", new { returnUrl = ViewBag.ReturnUrl })'>登录</a></span>
</header>

<div class="reg_main w80">
    @if (Model != null && Model.IsExtensional != null && Model.IsExtensional)
    {
        <h1>您将成为的三宝云个人账户</h1>      
    }
    else
    { 
        <h1>创建您的三宝云个人账户</h1>
    }

    <div class="person_signUp">
        <div class="wgt">
            @if (Model != null&&Model.IsExtensional != null && Model.IsExtensional)
            {
                <div class="person_Extensional_signUp_header">
                    <a href='@Url.Action("Bind", "Person", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/") })'>个人账户</a>
                    <em class="arrow"></em>
                </div>
            }
            else
            {
                <div class="person_signUp_header">
                    <a href='@Url.Action("SignUp", "Person", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/") })'>个人账户</a>
                    <em class="arrow"></em>
                </div>
                <div class="organization_signUp_header">
                    <a href='@Url.Action("SignUp", "Organization", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/") })'>企业账户</a>
                </div>
            }


        </div>
        <div class="person_signUp_form positon_person">
            @using (Html.BeginForm("SignUp", "Person", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/") }))
            {
@*@Html.AntiForgeryToken()*@
                @Html.ValidationSummary(true)
                if (Model != null && Model.IsExtensional != null && Model.IsExtensional)
                {
                @Html.HiddenFor(m => m.OpenIdClaimedIdentifier)
                @Html.HiddenFor(m => m.OpenIdProvider)
                @Html.HiddenFor(m => m.OpenIdUserName)
                @Html.HiddenFor(m => m.MembershipId)
                @Html.HiddenFor(m => m.IsExtensional)

                <div>
                    @Html.LabelFor(model => model.PersonName, "姓名", new { @class = "w3 paddingLeft-w2" })
                    @Html.TextBoxFor(model => model.PersonName, new { maxlength = 100, placeholder = "姓名" })
                    @Html.ValidationMessageFor(model => model.PersonName)
                </div>
                <div >
                    @Html.LabelFor(model => model.PersonEmail, "邮箱地址", new { @class = "w5" })
                    @Html.TextBoxFor(model => model.PersonEmail, new { maxlength = 100, placeholder = "电子邮箱" })
                    @Html.ValidationMessageFor(model => model.PersonEmail)
                </div>
                <div >
                    @Html.LabelFor(model => model.PersonMobile, "手机", new { @class = "w3 paddingLeft-w2" })
                    @Html.TextBoxFor(model => model.PersonMobile, new { maxlength = 11, placeholder = "11位手机号码" })
                    @Html.ValidationMessageFor(model => model.PersonMobile)
                </div>
                    
                }
                else
                {
                <div >
                    @Html.LabelFor(model => model.UserName, "用户名", new { @class = "w4 paddingLeft-w1" })
                    @Html.TextBoxFor(model => model.UserName, new { maxlength = 100, placeholder = "电子邮箱" })
                    @Html.ValidationMessageFor(model => model.UserName)
                </div>
                
                <div >
                    @Html.LabelFor(model => model.Password, "密码", new { @class = "w3 paddingLeft-w2" })
                    @Html.EncryptPasswordFor(model => model.Password, new Dictionary<string, object>() { { "maxlength", "20" }, { "placeholder", "6-20位的密码" } })
                    @Html.ValidationMessageFor(model => model.Password)
                </div>
                <div >
                    @Html.LabelFor(model => model.ConfirmPassword, "确认密码", new { @class = "w5" })
                    @Html.PasswordFor(model => model.ConfirmPassword, new { maxlength = 20, placeholder = "确认密码" })
                    @Html.ValidationMessageFor(model => model.ConfirmPassword)
                </div>
                <div >
                    @Html.LabelFor(model => model.PersonName, "姓名", new { @class = "w3 paddingLeft-w2" })
                    @Html.TextBoxFor(model => model.PersonName, new { maxlength = 100, placeholder = "姓名" })
                    @Html.ValidationMessageFor(model => model.PersonName)
                </div>
                <div >
                    @Html.LabelFor(model => model.PersonMobile, "手机", new { @class = "w3 paddingLeft-w2" })
                    @Html.TextBoxFor(model => model.PersonMobile, new { maxlength = 11, placeholder = "11位手机号码" })
                    @Html.ValidationMessageFor(model => model.PersonMobile)
                </div>
                }
             
                <div class="wgt-l-signUp">
                    <input type="submit" value="注册" class="person_reg" />
                    @*@Html.Submit("注册", 10)*@
                </div>
            }
        </div>
    </div>
</div>


